<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="initial-scale=1.0, user-scalable=no, width=device-width">
    <title>周边检索</title>
    <link rel="stylesheet" href="http://cache.amap.com/lbs/static/main1119.css"/>
    <style type="text/css">
        #panel {
            position: absolute;
            background-color: white;
            max-height: 90%;
            overflow-y: auto;
            top: 10px;
            right: 10px;
            width: 200px;
        }
    </style>
    <script type="text/javascript" src="http://webapi.amap.com/maps?v=1.3&key=e1235145c132fab11720c11de549ada8"></script>
    <script type="text/javascript" src="http://cache.amap.com/lbs/static/addToolbar.js"></script>
</head>
<body style='font-size:12px'>
<div id="container"></div>
<div id="panel"></div>
<script type="text/javascript">
    var map = new AMap.Map("container", {
        resizeEnable: true,
        zoom: 12 //地图显示的缩放级别
    });
    var search, center = [113.681942, 34.762978];
    var searchOptions = {
        map: map,
        panel: 'panel',
        keywords: '',
        pageSize: 5,
        orderBy: '_id:ASC'
    };
    //加载CloudDataSearch服务插件
    AMap.service(["AMap.CloudDataSearch"], function() {
        search = new AMap.CloudDataSearch('567a6c1c305a2a3c9dab4c42', searchOptions); 
        search.searchNearBy(center, 5000);
    });
</script>
</body>
</html>